Game_Party.prototype.setupBattleTestItems = function() {
    $dataItems.forEach(function(item) {
        if (item && item.name.length > 0) {
            if(!CP.UseEquipManager.isUseableEquip(item))
                this.gainItem(item, this.maxItems(item));
        }
    }, this);
    // 战斗测试增加护驾 和 可使用装备
    $dataArmors.forEach(function(item) {
        if (item && item.name.length > 0 && item.itemCategory.contains('护驾') ) {
        //if (item && item.name.length > 0 && (item.itemCategory.contains('护驾') || CP.UseEquipManager.isUseableEquip(item)) ) {
            this.gainItem(item, 3);
        }
    }, this);
    /*
    $dataWeapons.forEach(function(item) {
        if (item && item.name.length > 0 && CP.UseEquipManager.isUseableEquip(item) ) {
            this.gainItem(item, 3);
        }
    }, this);
    */
};


Game_Party.prototype.setupAllTestItems = function() {
    $dataItems.forEach(function(item) {
        if (item && item.name.length > 0) {
            if(!CP.UseEquipManager.isUseableEquip(item))
                this.gainItem(item, this.maxItems(item));
        }
    }, this);

    $dataWeapons.forEach(function(item) {
        if (item && item.name.length > 0) {
            this.gainItem(item, this.maxItems(item));
        }
    }, this);

    $dataArmors.forEach(function(item) {
        if (item && item.name.length > 0) {
            this.gainItem(item, this.maxItems(item));
        }
    }, this);
};


Game_Party.prototype.setupTestItemsforTrailer = function() {
    $dataItems.forEach(function(item) {
        if (item && item.name.length > 0) {
            this.gainItem(item, Math.min(Math.randomInt(20),this.maxItems(item)));
        }
    }, this);

    $dataWeapons.forEach(function(item) {
        if (item && item.name.length > 0) {
            this.gainItem(item, Math.min(Math.randomInt(20),this.maxItems(item)));
        }
    }, this);

    $dataArmors.forEach(function(item) {
        if (item && item.name.length > 0 && !item.itemCategory.contains('护驾')) {
            this.gainItem(item, Math.min(Math.randomInt(20),this.maxItems(item)));
        }
    }, this);

    $dataArmors.forEach(function(item) {
        if (item && item.name.length > 0 && item.itemCategory.contains('护驾')) {
            if(!!$dataEnemies[item.enemyId])
                if(!$dataEnemies[item.enemyId].bookHide){
                    this.gainItem(item, Math.randomInt(3));
                }
        //if (item && item.name.length > 0 && (item.itemCategory.contains('护驾') || CP.UseEquipManager.isUseableEquip(item)) ) {
            
        }
    }, this);

    this.equipItems().forEach(function(item){
        const gameItem = new Game_Item(item)
        if (gameItem.isMagicWeapon()){
            gameItem.gainExp(Math.randomInt(gameItem.nextLevelExp()));
        }
    }, this);
        
    
    $gameActors.actor(1).learnSkill(5);
    $gameActors.actor(1).learnSkill(27);
    $gameActors.actor(1).learnSkill(26);
    $gameActors.actor(3).learnSkill(54);
    $gameActors.actor(2).learnSkill(75);
    $gameActors.actor(2).learnSkill(89);
    $gameActors.actor(4).learnSkill(106);
    $gamePlayer.unlockAllDestinations();
    $gameSystem.disableEncounter();
    $gameParty.gainGold(Math.randomInt(999999));
};

